import { request } from "@/utils"
import { message } from "antd"

export function getDataByName (filename, c_num, file_type) {
  return request({
    url: '/get-file',
    method: 'GET',
    params: {
      filename,
      c_num,
      file_type
    }
  }).catch(error => {
    // console.log(error.message)
    message.error('网络异常，请稍后重试')
  })

}